import 'package:get/get.dart';

import '../data/model/uer_info.dart';

class UserInfoService extends GetxService {

  Rx<UserInfo> userInfo = UserInfo().obs;
  RxMap<int, String> avatarMap = new Map<int, String>().obs; // 用户头像 key:id   value:头像路径
  RxMap<int, String> nicknameMap = new Map<int, String>().obs;
  RxSet<int> userSet = new Set<int>().obs;

  Future<UserInfoService> init() async {
    return this;
  }

  @override
  void onInit() {
    super.onInit();
  }

  @override
  void onClose() {
    super.onClose();
  }
}